using System;

namespace Joy.Erp.Ufida.Pmc
{
    /// <summary>
    /// 每日供需平衡DTO
    /// </summary>
    public class DailyBalanceDto
    {
        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// 现存量（当日期初）
        /// </summary>
        public decimal CurrentStock { get; set; }

        /// <summary>
        /// 当日需求量
        /// </summary>
        public decimal DemandQuantity { get; set; }

        /// <summary>
        /// 当日供应量
        /// </summary>
        public decimal SupplyQuantity { get; set; }

        /// <summary>
        /// 预计期末结存量（期初 + 供应 - 需求）
        /// </summary>
        public decimal ProjectedEndingStock { get; set; }

        /// <summary>
        /// 是否缺料
        /// </summary>
        public bool IsShortage { get; set; }

        /// <summary>
        /// 缺料数量（如果缺料）
        /// </summary>
        public decimal? ShortageQuantity { get; set; }
    }
}

